home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / libraries / patchlibv3.lha / patchlibrary / includes / patch_protos.h next >
C/C++ Source or Header  |  1994-01-24  |  1KB  |  40 lines

  1. /* patch_protos.h - prototypes for patch.library functions */
  2. /* (C) Copyright 1993/94 Stefan Fuch                       */
  3.  
  4. #ifndef CLIB_PATCH_H
  5. #define CLIB_PATCH_H
  6.  
  7.  
  8. #ifndef  EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef  INTUITION_INTUITION_H
  12. #include <intuition/intuition.h>
  13. #endif
  14. #ifndef  UTILITY_TAGITEM_H
  15. #include <utility/tagitem.h>
  16. #endif
  17.  
  18.  
  19. struct Patch *InstallPatch( struct NewPatch *newPatch );
  20. ULONG WaitRemovePatch( struct Patch *patch );
  21. ULONG RemovePatch( struct Patch *patch );
  22. struct Patch *FindPatch( UBYTE *name );
  23. /*--------- Functions in V2 or higher -----------------------------------*/
  24. struct Patch *InstallPatchTagsA( unsigned long (*newFunction)(),
  25.                   long funcOffset, struct TagItem *taglist );
  26. struct Patch *InstallPatchTags( unsigned long (*newFunction)(),
  27.                   long funcOffset, Tag tag1, ... );
  28. ULONG RemovePatchTagsA( struct Patch *patch, struct TagItem *taglist );
  29. ULONG RemovePatchTags( struct Patch *patch, Tag tag1, ... );
  30. /*--------- Functions in V3 or higher -----------------------------------*/
  31. struct Patch *FindPatchTagsA( struct TagItem *taglist );
  32. struct Patch *FindPatchTags( Tag tag1, ... );
  33. ULONG SetPatchA( struct Patch *patch, struct TagItem *taglist );
  34. ULONG SetPatch( struct Patch *patch, Tag tag1, ... );
  35. ULONG GetPatchA( struct Patch *patch, struct TagItem *taglist );
  36. ULONG GetPatch( struct Patch *patch, Tag tag1, ... );
  37. void PatchFreeVec( APTR memoryBlock );
  38.  
  39. #endif  /* CLIB_PATCH_H */
  40.